Solution:
stocks = [ {'index': 'mWIG40', 'name': 'TEN', 'price': 304}, {'index': 'mWIG40', 'name': 'PLW', 'price': 309}, {'index': 'sWIG80', 'name': 'BBT', 'price': 22} ] print(list(map(lambda x: x['index'] == 'mWIG40', stocks)))